package cn.wizzer.app.zs.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import org.nutz.dao.entity.annotation.*;

import java.beans.Transient;
import java.io.Serializable;

@Comment("投诉")
@Table("zs_complaint")
public class Complaint extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @Prev(els = {@EL("uuid()")})
    private String id;

    @Column
    @Comment("创建人")
    @ColDefine(type = ColType.VARCHAR, width = 40)
    private String founder;

    @Column
    @Comment("投诉人")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String complainantName;

    @Column
    @Comment("投诉人电话")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String complainantPhone;

    @Column
    @Comment("投诉内容")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String content;

    @Column
    @Comment("项目名称")
    @ColDefine(type = ColType.VARCHAR, width = 30)
    private String projectName;

    @Column
    @Comment("项目类型")
    @ColDefine(type = ColType.VARCHAR, width = 5)
    private String projectType;

    @Column
    @Comment("状态")
    @ColDefine(type = ColType.INT, width = 5)
    private Integer status;

    @Column
    @Comment("处理人")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String handler;

    @Column
    @Comment("是否处理")
    @ColDefine(type = ColType.BOOLEAN, width = 5)
    private boolean isHanding;

    @Column
    @Comment("处理意见")
    @ColDefine(type = ColType.VARCHAR, width =100)
    private String handling;

    @Column
    @Comment("不处理原因")
    @ColDefine(type = ColType.VARCHAR, width =100)
    private String reason;

    @Column
    @Comment("反馈意见")
    @ColDefine(type = ColType.VARCHAR, width =100)
    private String feedback;

    @Column
    @Comment("反馈人")
    @ColDefine(type = ColType.VARCHAR, width =40)
    private String feedbackPerson;


    private String statusText;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComplainantName() {
        return complainantName;
    }

    public void setComplainantName(String complainantName) {
        this.complainantName = complainantName;
    }

    public String getComplainantPhone() {
        return complainantPhone;
    }

    public void setComplainantPhone(String complainantPhone) {
        this.complainantPhone = complainantPhone;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getProjectType() {
        return projectType;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public boolean isHanding() {
        return isHanding;
    }

    public void setHanding(boolean handing) {
        isHanding = handing;
    }

    public String getHandling() {
        return handling;
    }

    public void setHandling(String handling) {
        this.handling = handling;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Transient
    public String getStatusText() {
        return statusText;
    }

    public void setStatusText(String statusText) {
        this.statusText = statusText;
    }

    public String getFounder() {
        return founder;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public String getFeedbackPerson() {
        return feedbackPerson;
    }

    public void setFeedbackPerson(String feedbackPerson) {
        this.feedbackPerson = feedbackPerson;
    }
}
